package com.wfw.second.config;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @ Author     ：duanchao
 * @ Date       ： 16:59 2021/1/5
 * @ Description：
 */
@Configuration
@Component
@PropertySource(value =  {"classpath:other.properties" },ignoreResourceNotFound = true)
@ConfigurationProperties(prefix = "dc")
@Getter
@Setter
public class OtherProper {

//    @Value("${dc.dd}")
    private String dd;


}